//
//  UIImageView+PJ.m
//  HomeIn
//
//  Created by mac on 15/11/7.
//  Copyright © 2015年 ZZP. All rights reserved.
//

#import "UIImageView+PJ.h"

@implementation UIImageView (PJ)
- (void)MasksToBounds:(BOOL)tailor CornerRadius:(CGFloat)raduis
{
    [self.layer setMasksToBounds:tailor];
    [self.layer setCornerRadius:raduis];
}
- (void)MasksToBounds:(BOOL)tailor CornerRadius:(CGFloat)raduis BorderWidth:(CGFloat)width borderColor:(UIColor *)color
{
    [self.layer setMasksToBounds:tailor];
    [self.layer setCornerRadius:raduis];
    [self.layer setBorderWidth:width];
    [self.layer setBorderColor:color.CGColor];
}
@end
